import React, { Component } from 'react'
import addProps from './addProps'

class HocComponent extends Component {
  state = {
    title: 'hello'
  }

  render() {
    console.log(this.props)
    return (
      <div>
        {this.state.title} {this.props.name} {this.props.msg}
      </div>
    )
  }
}

export default addProps(HocComponent)